#include "DialogoLogin.h"

DialogoLogin::DialogoLogin() {
	this->set_title("Login");
	this->set_resizable(false);
	this->etiUsuario.set_text("Nombre de usuario");
	this->get_vbox()->pack_start(etiUsuario, Gtk::PACK_SHRINK);
	this->get_vbox()->pack_start(usuario, Gtk::PACK_SHRINK);
	this->etiClave.set_text("Clave");
	this->get_vbox()->pack_start(etiClave, Gtk::PACK_SHRINK);
	this->clave.set_visibility(false);
	this->get_vbox()->pack_start(clave, Gtk::PACK_SHRINK);
	this->get_action_area()->set_border_width(30);
	this->add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
	this->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
	this->show_all();
}

std::string DialogoLogin::getUsuario() {
	return this->usuario.get_text();
}

std::string DialogoLogin::getClave() {
	return this->clave.get_text();
}

DialogoLogin::~DialogoLogin() {

}
